// 楼栋管理
import request from '@/utils/request'

// 获取楼栋信息
export function getBuilding(data) {
  return request({
    url: '/building/getPage',
    method: 'post',
    data: data
  })
}
// 删除楼栋信息
export function deleteBuilding(id) {
  return request({
    url: `/building/delete/${id}`,
    method: 'get',
    headers: {
      'Content-Type':'application/x-www-form-urlencoded'
    }
  })
}
// 编辑楼栋信息

export function updateBuilding(data) {
  return request({
    url: '/building/update',
    method: 'post',
    data: data
  })
}
export function saveRoom(data) {
  return request({
    url: '/room/saveBatch',
    method: 'post',
    data: data
  })
}

